//
//  INTERFACE.h
//  MindBox
//
//  Created by MS on 15-12-31.
//  Copyright (c) 2015年 Lemon. All rights reserved.
//


//主页
#define HOME_URL  @"http://app.xinyihezi.com:8888/homepage/?search_type=16&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS"

//主页底部商品
#define HOME_GOODS_URL(pages) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/good/?label=homepage&page=%d&page_size=10&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",pages]

//分类页 分类名称
#define Category_Name_URL @"http://app.xinyihezi.com:8888/good/?search_type=0&category=all&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS"

//点击分类名称请求
#define Category_Goods_URL(cat_id) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/good/?search_type=0&category=%@&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id];

//分类页 标签
#define Category_Label_URL @"http://app.xinyihezi.com:8888/homepage/?search_type=1&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS&from_type=iOS"

//福利活动
#define Discover_Welfare_URL @"http://app.xinyihezi.com:8888/activity/?search_type=5&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS"

//心意专场
#define Discover_Mind_URL(pages) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/activity/?search_type=6&activity_cat_id=0&page=%d&page_size=10&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",pages]

//攻略
#define Discover_Raiders_URL(pages) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/activity/?search_type=1&hot_or_latest=1&page=%d&page_size=10&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",pages]

//首页二级界面
//大部分数据
#define GiftPage_URL(cat_id) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/homepage/?search_type=11&cat_id=%@&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id]

//精选专题
#define GiftPage_Sel_URL(cat_id)  [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/activity/?search_type=4&cat_id=%@&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id]

//底部商品
#define GiftPage_Goods_URL(cat_id,search_code,pages) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/good/?search_type=5&gift_cat_id=%@&goods_search_code=%@&page=%d&page_size=10&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id,search_code,pages]

//主题馆页面-底部商品同上
#define PopCatPage_URL(cat_id)  [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/homepage/?search_type=14&cat_id=%@&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id]


//商品列表
#define GoodsList_URL(cat_id,pages,max_price,min_price,free_postage,is_stock,filter_type) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/good/?search_type=1&category=%@&page=%@&page_size=10&max_price=%@&min_price=%@&free_postage=%@&same_city=0&is_stock=%@&filter_type=%@&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id,pages,max_price,min_price,free_postage,is_stock,filter_type]

//福利活动
#define Welfare_Goods_URL(cat_id,search_code,pages) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/good/?search_type=13&wel_cat_id=%@&goods_search_code=%@&page=%d&page_size=10&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id,search_code,pages]

//福利活动头部
#define Welfare_Header_URL(cat_id) [NSString stringWithFormat:@"http://app.xinyihezi.com:8888/activity/?search_type=8&wel_id=%@&unique_id=A542680E-BEFE-4CEF-8454-DC677F28744C&app_ver=2.2.2&from_type=iOS",cat_id]

//礼物排行榜二级界面
#define Week_Detail_URL @"http://app.xinyihezi.com:8888/homepage/?search_type=13"
